# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=file-roller
pkgver=3.40.0
pkgrel=0
pkgdesc="File Roller is an archive manager for the GNOME desktop "
url="https://wiki.gnome.org/Apps/FileRoller"
# s390x and riscv64 blocked by librsvg -> nautilus
arch="all !s390x !riscv64"
license="GPL-2.0-or-later"
depends="cpio"
makedepends="meson glib-dev gtk+3.0-dev json-glib-dev libnotify-dev libarchive-dev
	itstool nautilus-dev"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/file-roller/${pkgver%.*}/file-roller-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Dpackagekit=false \
		-Dcpio=/usr/bin/cpio \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="224dbe4f4358aa62589d084d67244ad8d65d718f9b6adf708ba1425b38fca68e08b07a6163f66d95c6acfd164b6062939cfeb27873ea41353e0551e322b0eb26  file-roller-3.40.0.tar.xz"
